package com.zhang.zhangapp.base.http;

import org.xutils.common.Callback;

/**
 * Created by 罗肖 on 2017/6/30.
 */
public interface MCallback {

    public void onSuccess(String data);// 成功有数据

    public void onSuccess(String message, String code);//成功没有数据

    public void onError(Throwable ex, boolean isOnCallback);

    public void onCancelled(Callback.CancelledException cex);

    public void onFinished();
}
